<?php

	include 'connect/connect.php';
	include 'class/class.lop.php';
	$lop = new lop;	
	$f_lop = $_POST["f_lop"];
	$f_loaihinh = $_POST["f_loaihinh"];
	$f_ngaybatdau = $_POST["f_ngaybatdau"];
	$f_diadiemhoc = $_POST["f_diadiemhoc"];
	$f_phonghoc = $_POST["f_phonghoc"];
	if($f_lop == '')
	{
		echo "Bat buoc phai nhap ten lop <br>";
	}
	else
	{
		$lop->add_lop($f_lop,$f_loaihinh,$f_ngaybatdau,$f_diadiemhoc,$f_phonghoc);
	}
	
?>